home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacHack 2000
/
MacHack 2000.toast
/
pc
/
The Hacks
/
Softshoe
/
Lisa's Mac Parts
/
Views
/
Pane Options
/
AcceptsConformanceToSize.h
< prev
next >
Wrap
Text File
|
2000-06-23
|
844b
|
44 lines
// AcceptsConformanceToSize.h
#ifndef AcceptsConformanceToSize_h
#define AcceptsConformanceToSize_h
#ifndef View_h
#include "View.h"
#endif
#ifndef ConformsToPaneSize_h
#include "ConformsToPaneSize.h"
#endif
class AcceptsConformanceToSize
{
friend class ConformsToPaneSize;
private:
UPoint32 paneSize;
bool paneSizeKnown;
ConformsToPaneSize *conformingView;
void SetConformingView( ConformsToPaneSize * );
// not implemented:
AcceptsConformanceToSize( const AcceptsConformanceToSize& );
void operator=( const AcceptsConformanceToSize& );
protected:
AcceptsConformanceToSize();
~AcceptsConformanceToSize() { Clear(); }
void SetContent( View& view )
{
SetConformingView( dynamic_cast<ConformsToPaneSize*>( &view ) );
}
void Clear();
void AnnouncePaneSize( UPoint32 );
};
#endif